-- GENERATED SPELL FOR [Orgrimmar Grunt] --


function spell0_3296(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3296', 563, 1)
end

function spell1_3296(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_3296', 593, 1)
end

function Sorts_3296(pUnit, Event)
local choix_sorts_3296 = math.random(0, 1)
if choix_sorts_3296 == 0 then
pUnit:RegisterEvent('spell0_3296', 1, 1)
end
if choix_sorts_3296 == 1 then
pUnit:RegisterEvent('spell1_3296', 1, 1)
end
end

function mob3296_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3296', math.random(1500, 3000), 1)
end

function mob3296_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3296_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3296_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3296, 1, 'mob3296_Action')
RegisterUnitEvent(3296, 2, 'mob3296_Leave')
RegisterUnitEvent(3296, 3, 'mob3296_Kill')
RegisterUnitEvent(3296, 4, 'mob3296_Die')
